home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / human interface toolbox / fragment tool / menustuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.3 KB  |  84 lines

  1. /*
  2.     File:        MenuStuff.h
  3.  
  4.     Contains:    Handles the application's menus
  5.  
  6.     Written by: Chris White    
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/5/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24.  
  25. #ifndef __MENUSTUFF__
  26. #define __MENUSTUFF__
  27.  
  28.  
  29.  
  30.  
  31. enum
  32. {
  33.     /* Menu ID numbers */
  34.     
  35.     kMenuBarID = 1000,
  36.     kAppleMenu = 1000,
  37.     kFileMenu,
  38.     kEditMenu,
  39.     kFragmentMenu
  40. };
  41.  
  42.  
  43.  
  44. enum
  45. {
  46.     /* Apple menu commands */
  47.     
  48.     cAbout = 1
  49. };
  50.  
  51.  
  52.  
  53. enum
  54. {
  55.     /* File menu commands */
  56.     
  57.     cNew = 1,
  58.     cOpen,
  59.     cClose,
  60.     /* --- */
  61.     cSave = 5,
  62.     cSaveAs,
  63.     /* --- */
  64.     cQuit = 8
  65. };
  66.  
  67.  
  68.  
  69. enum
  70. {
  71.     /* Fragment menu commands */
  72.     
  73.     cGetInfo = 1,
  74.     cExports,
  75.     /* --- */
  76.     cMoveTo = 4,
  77.     cCopyTo,
  78.     /* --- */
  79.     cRemove = 7
  80. };
  81.  
  82.  
  83.  
  84. #endif    // define __MENUSTUFF__